package com.br.aiops.receiver.es.config.db;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ConfigRepository extends JpaRepository<ConfigDTO, Long> {

    @Query(nativeQuery = true, value = "select * from log_alert_es_config l where l.use_status = 1 and l.env = ?1")
    List<ConfigDTO> findAll(String env);
}
